﻿@model IEnumerable<DLM.Domain.Model.PartyAlbum>
<table summary="my name is rayy!!!" class="tb">
    <colgroup>
        <col class="a" />
        <col class="b" />
        <col class="c" />
        <col class="d" />
    </colgroup>
    <thead>
        <tr>
           <th>
                编号
            </th>
            <th class="b">
                上传日期
            </th>
            <th>
                照片
            </th>
            <th>
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @item.PAID
                </td>
                <td>
                    @item.CreateDate
                </td>
                <td>
                    <img src="@Url.Content("~/Files/Party/" + item.PartyID + "/Album/Thumb/" + item.PhotoName)" />
                </td>
                <td>
                    @*  <a href="#" class="tb_delete">删除</a>*@
                    @using (Ajax.BeginForm("RemovePhoto", "Party", new { paid = item.PAID,partyID = item.PartyID }, 
                        new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "divAlbum", InsertionMode = InsertionMode.Replace }))
                    {
                        <input type="submit" class="btn_delete" value="s" />
                    }
                </td>
            </tr>
        }
    </tbody>
</table>
